<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isErrorPage="true"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>
<!--国际化的区域信息是决定国际化显示的因素-->
<h1><fmt:message key="welcomeInfo"/></h1>
<form action="" method="post">
    <fmt:message key="username"/>:<input/><br/>
    <fmt:message key="password"/>:<input/><br/>
    <input type="submit" value="<fmt:message key="loginBtn"/>"/>
</form>
<!--点击链接切换国际化-->
<a href="toLoginPage?locale=zh_CN">中文</a>|<a href="toLoginPage?locale=en_US">English</a>
</body>
</html>
